GBML manual / Backgrounds

EDGE_STRETCH

The picture’s outermost row and column of tiles carried outward, so the edge looks like it goes on for ever.

Works differently on Game Boy - The Game Boy decides what a picture shows past its edge when the game is built (see background_edge); the choice is read from the plain name written in the call.

Works differently on Game Boy Color - The Game Boy Color decides what a picture shows past its edge when the game is built (see background_edge); the choice is read from the plain name written in the call.

Sega Genesis: not built yet

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

EDGE_STRETCH: constant

Description

Names the edge where the picture's outermost row and column of tiles are carried outward, so the edge looks like it goes on for ever, for background_edge. It uses memory, and only one background can be stretched at a time (the page for background_edge says more).

Example

backdrop = background_create(0, 0, ts_doc_dungeon);
background_edge(backdrop, EDGE_STRETCH);

Makes the background's edge tiles go on past the picture.

See also: background_edgebackground_repeat